maze=[[1,1,1,1,1,1,1,1,1],
      [1,0,0,1,1,0,0,1,1],
      [1,0,1,0,1,0,0,0,1],
      [1,0,0,1,0,0,1,0,1],
      [1,0,1,0,0,1,0,0,1],
      [1,0,0,0,1,1,0,1,1],
      [1,1,0,0,0,0,0,0,1],
      [1,1,1,1,1,1,1,1,1]]
print(maze[1][1])
x=1
y=1
li=[]
point=maze[x][y]
max=int
def f(point):
      if point==1:
            return
      li.append(maze[x][y])
for y in range(1,8):
      for x in range(0,8):
            f(maze[x][y])
print(li)
print(len(li))